﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TraceThisItem.Domain;

namespace TraceThisItem.WebUI.Workflows
{
    public partial class Create : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnAgregarWorkFlow_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
				Facade.Instance.AddWorkFlow(new Workflow
				{
					Name = txtNombre.Text.Trim()
				});
				Response.Redirect("~/Workflows");
            }
        }
    }
}